/*
 * statistic.h
 *
 *  Created on: 17 sept. 2013
 *      Author: the
 */

#ifndef STATISTIC_H_
#define STATISTIC_H_

#include "type.h"
#include "dessin.h"
#include "init.h"
#include "metric.h"
#include "tabu.h"
#include "mcair.h"
#include "greedy.h"
#include "optimal.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

//Global extern variables
extern int nbOfNodes;		//Number of nodes
extern struct node* nodes;	//Array with the nodes
extern int nbOfRadios;		//Number of radios per node
extern int maxFreq;		//Number of orthogonal frequencies
extern int algorithm;		//Algorithm number used to allocate the frequencies
extern float	L;		//Length of a side of the observation window (LxL)
extern float	R;		//Radio scope of the nodes

//Simulate and print on the standard output the results for the different metrics and for 'nbOfSamples' samples
//The standard output must have the following format:
//  #List the parameters here (as a comment): nbOfSamples, nbOfNodes, nbOfFrequencies, Algorithm, etc.
//  #--------------------------------------------------------------------------------------
//  # metric0 stdDeviation metric1 stdDeviation metric2 stdDeviation etc.
//  and the results here
void simulate(int Algorithm, int variantTopology, int nbSamples );

#endif /* STATISTIC_H_ */
